﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="ISUX">
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <title>工作经历</title>
    <link rel="stylesheet" href="/ViewMob/css/wxui.css">
    <link rel="stylesheet" href="/ViewMob/css/group.css">
    <link href="//at.alicdn.com/t/font_qqztt1cpq09kke29.css" rel="stylesheet" />
    <link href="/ViewMob/js/layer/need/layer.css" rel="stylesheet" />
    <script src="/ViewMob/js/layer/layer.m.js"></script>
    <style>
        .ms-controller, [ms-controller] {
            display: none;
        }

        .page {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            opacity: 0;
            z-index: 1;
        }

            .page.js_show {
                opacity: 1;
            }

        .page__hd {
            padding: 24px;
            text-align: center;
            background: #4faeff url(../images/bg-account.jpg) 100% 100%;
            color: white;
        }

        .page__bd_spacing {
            padding: 0 15px;
        }

        .page__ft {
            padding-top: 40px;
            padding-bottom: 10px;
            text-align: center;
        }

            .page__ft img {
                height: 19px;
            }

            .page__ft.j_bottom {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
            }

        .page__title {
            text-align: left;
            font-size: 20px;
            font-weight: 400;
        }

        .page__desc {
            margin-top: 5px;
            text-align: left;
            font-size: 14px;
        }

        .page.home .page__intro-icon {
            margin-top: -.2em;
            margin-left: 5px;
            width: 16px;
            height: 16px;
            vertical-align: middle;
        }

        .page.home .page__title {
            font-size: 0;
            margin-bottom: 15px;
        }


        .head-oneself {
            width: 4.5rem;
            height: 4.5rem;
            margin-left: 20px;
        }

            .head-oneself img {
                border: 2px solid rgba(0,0,0,.2);
            }

        .ybl {
            background-color: #10c55b;
            font-size: 30px;
            color: white;
        }

        .wbl {
            background-color: lightgray;
            font-size: 20px;
            color: white;
        }

        .YZ {
            POSITION: absolute;
            RIGHT: 10PX;
            TOP: 10PX;
            FONT-SIZE: 70PX;
            COLOR: #ff0000;
            line-height: 70px;
        }
    </style>
</head>
<body style="background-color: #f8f8f8;" ms-controller="PAGE">
    <div class="page__hd">
        <h1 class="page__title">工作经历</h1>
    </div>
    <div class="page__bd">
        <div class="weui-panel">
            <div class="weui-panel__hd">工作经历 <a href="UI_GZJLDJ.html" style="color:blue;float:right">新增工作经历</a></div>
            <div class="weui-panel__bd">
                <div class="weui-media-box weui-media-box_text" ms-repeat-item="workls">
                    <i class="weui-icon-cancel" style="position: absolute;right: 10px;font-size: 28px;" ms-click="delgzjl(item)"></i>
                    <i class="weui-icon-info-circle" style="position: absolute;right: 60px;font-size: 28px;" ms-click="edit(item)"></i>
                    <h4 class="weui-media-box__title">{{item.corp_name}}</h4>
                    <p class="weui-media-box__desc">{{item.begin_nf}}至{{item.end_nf}}</p>
                    <ul class="weui-media-box__info">
                        <li class="weui-media-box__info__meta">企业性质：{{item.corp_type}}</li>
                        <li class="weui-media-box__info__meta">职称：{{item.zc}}</li>
                        <li style="display:none" class="weui-media-box__info__meta weui-media-box__info__meta_extra">其它信息</li>
                    </ul>
                </div>

            </div>
        </div>
    </div>
    
    <script src="/ViewMob/js/zepto.min.js"></script>
    <script src="/ViewMob/js/weui.min.js"></script>
    <script src="/ViewMob/js/avalon1.47.js"></script>
    <script src="/ViewMob/js/ComFunJS.js"></script>

    <script type="text/javascript" class="searchbar js_show">
        var model = avalon.define({
            $id: "PAGE",
            userdata: {},
            workls: [],
            nowwork: {},
            edit: function (item) {
                location.href = "UI_GZJLDJ.html?workid=" + item.ID;
            },
            delgzjl: function (item) {

                ComFunJS.winconfirm("是否要删除该工作记录?", function () {
                    $.post("/API/VIEWAPI.ashx?Action=Commanage_DELWORKJL&r=" + Math.random(), { workid: item.ID }, function (resultData) {
                        if (resultData.ErrorMsg == "") {
                            ComFunJS.closeAll()
                            model.workls.remove(item);
                            ComFunJS.winsuccess("操作成功")
                        }
                    });
                }, function () {
                    ComFunJS.closeAll()

                })

              

            },
        })
        avalon.ready(function () {
            model.userdata = JSON.parse(ComFunJS.getCookie('userdata'));
            $.getJSON("/API/VIEWAPI.ashx?Action=Commanage_GETWORKJL&r=" + Math.random(), { xh: model.userdata.xh }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    model.workls = resultData.Result;
                    model.nowwork = resultData.Result1;
                }
            });


        })
    </script>
</body>

</html>
